package com.cy.ppj.dao.mapper.product;

import com.cy.ppj.model.domian.product.ProductDocs;
import com.cy.ppj.model.enums.DocsType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

@Mapper
public interface ProductDocsMapper extends BaseMapper<ProductDocs> {

    void insertBatch(List<ProductDocs> productDocsList);

    void deleteBatch(@Param("productId") Long productId, @Param("docsTypes") List<DocsType> docsTypes);
    
    List<ProductDocs> queryByProductId(@Param("productId") Long productId);
}
